Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update C# langversion to 13 #83

Merged
merged 28 commits into from
Jan 25, 2025
Merged

Update C# langversion to 13 #83

merged 28 commits into from
Jan 25, 2025

Conversation

FrankvdStam
Copy link
Owner

@FrankvdStam FrankvdStam commented Jan 15, 2025

  • Update projects to C# lang version 13
  • Enable nullable
  • Remove sonarqube in favour of qodana
  • Fix many many qodana inspections

Copy link

github-actions bot commented Jan 15, 2025

Qodana for .NET

166 new problems were found

Inspection name Severity Problems
Check .NET source code coverage 🔶 Warning 166
@@ Code coverage @@
- 21% total lines covered
7601 lines analyzed, 1601 lines covered
# Calculated according to the filters of your coverage tool

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Detected 6 dependencies

Third-party software list

This page lists the third-party software dependencies used in SoulSplitter

Dependency Version Licenses
MaterialDesignColors 2.1.4 MIT
MaterialDesignThemes 4.9.0 MIT
Microsoft.CSharp 4.7.0 MIT
Microsoft.NETCore.Platforms 1.1.0 MIT
Microsoft.Xaml.Behaviors.Wpf 1.1.39 MIT
NETStandard.Library 2.0.3 MIT
Contact Qodana team

Contact us at [email protected]

Copy link

github-actions bot commented Jan 25, 2025

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

@@ Code coverage @@
+ 21% total lines covered
7702 lines analyzed, 1678 lines covered
! 21% fresh lines covered
6543 lines analyzed, 1385 lines covered
# Calculated according to the filters of your coverage tool

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Detected 6 dependencies

Third-party software list

This page lists the third-party software dependencies used in SoulSplitter

Dependency Version Licenses
MaterialDesignColors 2.1.4 MIT
MaterialDesignThemes 4.9.0 MIT
Microsoft.CSharp 4.7.0 MIT
Microsoft.NETCore.Platforms 1.1.0 MIT
Microsoft.Xaml.Behaviors.Wpf 1.1.39 MIT
NETStandard.Library 2.0.3 MIT
Contact Qodana team

Contact us at [email protected]

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.


private readonly List<SwitchableDrop> _switchableWeapons =
[
new SwitchableDrop(ItemType.StoneGreatsword, 23800000, 306000, 1503000),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
new SwitchableDrop(ItemType.StoneGreatsword, 23800000, 306000, 1503000),

//Anor londo
new SwitchableDrop(ItemType.SilverKnightStraightSword, 24100000, 208000, 1473000),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification

//Anor londo
new SwitchableDrop(ItemType.SilverKnightStraightSword, 24100000, 208000, 1473000),
new SwitchableDrop(ItemType.SilverKnightSpear, 24100300, 1006000, 1473000),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
new SwitchableDrop(ItemType.SilverKnightSpear, 24100300, 1006000, 1473000),

//kiln
new SwitchableDrop(ItemType.BlackKnightHalberd, 27905300, 1105000, 1474000),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification

//kiln
new SwitchableDrop(ItemType.BlackKnightHalberd, 27905300, 1105000, 1474000),
new SwitchableDrop(ItemType.BlackKnightGreataxe, 27905200, 753000, 1474000),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
new SwitchableDrop(ItemType.BlackKnightSword, 27907000, 310000, 1474000),

//Catacombs
new SwitchableDrop(ItemType.BlackKnightGreataxe, 27902000, 753000, 1474000),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification

//Catacombs
new SwitchableDrop(ItemType.BlackKnightGreataxe, 27902000, 753000, 1474000),
new SwitchableDrop(ItemType.BlackKnightHalberd, 27903000, 1105000, 1474000)

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
};
public static ObservableCollection<EnumFlagViewModel<TimingType>> TimingTypes { get; set; } =
[
new EnumFlagViewModel<TimingType>(TimingType.Immediate),

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
public static ObservableCollection<EnumFlagViewModel<TimingType>> TimingTypes { get; set; } =
[
new EnumFlagViewModel<TimingType>(TimingType.Immediate),
new EnumFlagViewModel<TimingType>(TimingType.OnLoading)

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
};
public static ObservableCollection<EnumFlagViewModel<SplitType>> SplitTypes { get; set; } =
[
new EnumFlagViewModel<SplitType>(SplitType.Flag)

Check notice

Code scanning / QDNET

Use preferred style of 'new' expression when created type is evident Note

Redundant type specification
@FrankvdStam FrankvdStam merged commit 5a51400 into main Jan 25, 2025
3 checks passed
@FrankvdStam FrankvdStam deleted the feature/langversion-13 branch January 25, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant